Repository navigation
Conversation
Couchbase Server 8.0 defaults new buckets to the Magma storage backend, which does not support Views. Pin couchstore in the CI bucket setup so the Views specs keep running, and add an 8.0.4 entry to the matrix. Refs BC-3548 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Couchbase Server 8.0 uses Magma as the default storage backend, and Magma buckets do not support Views (map/reduce design documents). BREAKING CHANGE: - remove CouchbaseOrm::Views (view, index_view, ensure_design_document!, include_docs) and the Rails ensure_design_documents initializer - remove BucketProxy#view - has_many now defaults to type: :n1ql; type: :view raises ArgumentError - join builds its by_<model>_id lookups with N1QL instead of Views The CI bucket keeps the server default storage backend (Magma on 8.0). Refs BC-3548 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
Couchbase Server 8.0 made Magma the default bucket storage backend. Magma does not support Views, so adding CB 8.0.4 to the CI matrix produced 12 failures, all with:
Rather than pinning CI buckets to couchstore, we keep the server default and drop the View-based features from the ORM.
Changes
CouchbaseOrm::Views(view,index_view,ensure_design_document!,include_docs) is deleted.config.couchbase_orm.ensure_design_documentssetting and its after-initialize hook are removed.BucketProxy#viewis removed.has_manynow defaults totype: :n1ql;type: :viewraisesArgumentError.joinbuilds itsby_<model>_id/find_by_<model>_idlookups with N1QL instead of Views (same method names).Release note
This changes the public API: it should be released as the next major version. The version bump is left to the release PR.
Testing
Full suite run locally against Couchbase Server 8.0.4 (Magma bucket) with Ruby 4.0 / ActiveModel 8.1.4: 386 examples, 0 failures.
🤖 Generated with Claude Code